<?php

namespace common\models\book;

use Yii;

/**
 * This is the model class for table "{{%category_room}}".
 *
 * @property int $id
 * @property int $category_id 需求ID
 * @property int $room_id 类型ID
 */
class CategoryRoom extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%category_room}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['category_id', 'room_id'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'category_id' => '需求ID',
            'room_id' => '类型ID',
        ];
    }

}
